package com.societyGames.faceExercises
{
public class StopPointAtFaceAction extends FadeImageAction
{
  private var _faceDataRender:FaceDataRender;

  public function StopPointAtFaceAction(faceDataRender:FaceDataRender, duration:Number)
  {
    this._faceDataRender = faceDataRender;
    super(faceDataRender.pointImage, 0, duration)
  }

  public override function startAction():void
  {
    //If they're not arrested, don't do anything.
    if (!this._faceDataRender.pointImage.visible)
    {
      this._completeEventObject.dispatchEvent();
      return;
    }
    super.startAction();
  }

  override protected function onComplete():void
  {
    this._faceDataRender.pointImage.visible = false;
    super.onComplete();
  }
}
}